import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-24
 * Time: 20:45
 */
public class Test {
    public static void main(String[] args) {
        int[] array={5,2,3,0,10,7,40,4};
        Sort.insertSort(array);
        System.out.println("插入排序：");
        System.out.println(Arrays.toString(array));
        System.out.println("=================");
        int[] array2={5,2,3,0,10,7,40,4};
        Sort sort=new Sort();
        sort.shellSort(array2);
        System.out.println("希尔排序：");
        System.out.println(Arrays.toString(array2));
    }
}
